package com.ws.game.lesson3.fire
{
	import com.ws.game.common.framework.BaseCtrl;
	import com.ws.game.common.global.Global;
	import com.ws.game.common.utils.PartType;
	
	import flash.display.Sprite;
	
	public class Player extends FaceObject implements IShoot
	{
		public function Player(aCtrl:BaseCtrl, face:Sprite)
		{
			super(aCtrl, face);		
			this._part = PartType.PLAYER;
		}
		
		public function shoot():void{
			var b:Bullet = new Bullet(this);
			b.x = x+width/2;
			b.y = y+height/2;
			Global.scene.addGameObject(b);
		}
	}
}